package com.quanyan.signup.constants;

import java.util.Date;
import java.util.UUID;

/**
 * Created by Administrator on 2016/6/15.
 */
public class KeyUtil {

    /**
     * 获取唯一标示-->标示用户
     * @return
     */
    public static String getKeyCaceId(){
        String uCaceId=getUUID()+new Date().getTime();
        return uCaceId.replace("-","u");
    }

    public static String getUUID(){
        return UUID.randomUUID().toString();
    }
}
